-- GENERATED SPELL FOR [Sister Rathtalon] --


function spell0_5830(pUnit, Event) --@Enveloping Winds,n/a--
pUnit:FullCastSpellOnTarget(6728,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5830', 12000, 1)
end

function spell1_5830(pUnit, Event) --@Gust of Wind,Self--
pUnit:FullCastSpellOnTarget(6982,pUnit)
pUnit:RegisterEvent('Sorts_5830', 6000, 1)
end

function spell2_5830(pUnit, Event) --@Lightning Cloud,n/a--
pUnit:FullCastSpellOnTarget(6535,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_5830', 18000, 1)
end

function Sorts_5830(pUnit, Event)
local choix_sorts_5830 = math.random(0, 2)
if choix_sorts_5830 == 0 then
pUnit:RegisterEvent('spell0_5830', 1, 1)
end
if choix_sorts_5830 == 1 then
pUnit:RegisterEvent('spell1_5830', 1, 1)
end
if choix_sorts_5830 == 2 then
pUnit:RegisterEvent('spell2_5830', 1, 1)
end
end

function mob5830_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_5830', math.random(1500, 3000), 1)
end

function mob5830_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5830_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob5830_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(5830, 1, 'mob5830_Action')
RegisterUnitEvent(5830, 2, 'mob5830_Leave')
RegisterUnitEvent(5830, 3, 'mob5830_Kill')
RegisterUnitEvent(5830, 4, 'mob5830_Die')
